{% extends "main.html" %}

{% block title %}{{ post['title'] }}{% end %}

{% block body %}
<form action="./{{ post['_id'] }}" method="post">
	<input type="text" name="title" value="{{ post['title'] }}"> <br>
	<textarea rows="20" cols="70" name="postcontent">{{ post['postcontent'] }}</textarea><br>
	<input type="text" name="tags" value="{% for tag in post['tags'] %}{{ tag }}, {% end %}"><br>
	<input class="button" type="submit" name="editblogpost" value="{{ _("Edit") }}">
	{{ xsrf_form_html() }}
</form>
	</div>
{% end %}